<template>
  <div>
    <van-nav-bar
      title="我的收藏"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
    <div>
      <van-tabs sticky scrollspy>
        <div class="aa">
          <van-tab title="国内"> </van-tab>
          <van-tab title="海淘"> </van-tab>
          <van-tab title="发现"> </van-tab>
          <van-tab title="原创"> </van-tab>
          <van-tab title="资讯"> </van-tab>
        </div>
      </van-tabs>
    </div>
  </div>
</template>

<script>
import Vue from "vue";
import { Tab, Tabs, Sticky, NavBar } from "vant";
Vue.use(NavBar);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Sticky);
export default {
  methods: {
    onClickLeft() {
      this.$router.back();
    },
  },
};
</script>

<style lang="stylus" scoped>
.nav
  position sticky
  top 0
  height 0.45rem
  text-align center
  line-height 0.45rem
  background-color white
  h1
    font-size 0.16rem
    font-weight 400
</style>
